package pro.spring.wesocketController;

import org.apache.catalina.websocket.StreamInbound;
import org.apache.catalina.websocket.WebSocketServlet;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;

@SuppressWarnings("deprecation")
@WebServlet("/theme.ws")
public class WebsocketController  extends WebSocketServlet {

	private static final long serialVersionUID = 4481799764231320270L;

	protected StreamInbound createWebSocketInbound(String subProtocol,
            HttpServletRequest request) {
        return new MyMessageInbound();
    }
}
